package com.etime.perfectschool.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etime.perfectschool.pojo.NewsComments;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NewsCommentsMapper extends BaseMapper<NewsComments> {
   //获取某条新闻的所有评论
   List<NewsComments> getAllNewsComments(int newId);
   //删除某条新闻的评论
   int deleteNewsCommentsBynewId(int newsId);
}
